package com.Dao.DaoImpl;

import com.Dao.UserDao;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class UserDaoImpl_1 implements UserDao {

    private List<Object> list;
    private Set<Object> set;
    private Object[] array;
    private Map<String,Object> map;
    private Properties properties;


    //setter注入方式
    public void setList(List<Object> list) {
        this.list = list;
    }

    public void setSet(Set<Object> set) {
        this.set = set;
    }

    public void setArray(Object[] array) {
        this.array = array;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    @Override
    public void save() {
        System.out.println("list:" + list);
        System.out.println("set:" + set);
        System.out.println("array:" + array);
        System.out.println("map:" + map);
        System.out.println("properties:" + properties);

    }
}
